#pragma once

#ifndef _MAINLOOP_H_
#define _MAINLOOP_H_

#define N 16

struct Settings {
	char logenabled;
	unsigned long filenum, goodpackets, badpackets;
};

struct Location {
	float x, y, z;
	char zone;
};

union PacketData {
	char * c;
	unsigned char * uc;
	short * s;
	unsigned short * us;
	int * i;
	unsigned int * ui;
	long * l;
	unsigned long *ul;
	float * f;
	double * d;
};

/* mainloop.cpp */
int mainloop(SOCKET * ListenSocket, unsigned long * compressTable, char ** decompressTable, struct UDPdata * UDPcomm);

#endif
